Determine the exact error of a long python line